﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/BlankLayout.Master" Inherits="System.Web.Mvc.ViewPage<NTQOnlineExamFrontend.Models.ExamViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <div id="content">
    </div>
    <script type="text/javascript">
        $(document).ready(function () {
            Examination.InitExam("<%=Model.TermId%>");
   
            $(document)
                .bind("contextmenu", function (e) {
                    return false;
                })
                .bind("keyup keydown", function (e) {
                    if ((e.ctrlKey && e.keyCode == 17) || (e.keyCode == 123)
                        || (e.ctrlKey && e.keyCode == 80) || e.keyCode == 44) { //prevent Ctrl-P and F12, Prt Sc
                        e.preventDefault();
                        return false;
                    }
                    ;
                });

            $('body').bind('copy paste cut drag drop', function (e) {
                e.preventDefault();
            });
        });
    </script>
</asp:Content>
